package com.peace.hospital.opdept.service.outpatientdept.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.peace.hospital.entity.common.People;
import com.peace.hospital.entity.outpatientdept.Allcharge;
import com.peace.hospital.opdept.mapper.outpatientdept.AllchargeMapper;
import com.peace.hospital.opdept.service.outpatientdept.IAllchargeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 总收费表 服务实现类
 * </p>
 *
 * @author 谢晓峰
 * @since 2019-11-11
 */
@Service
public class AllchargeServiceImpl extends ServiceImpl<AllchargeMapper, Allcharge> implements IAllchargeService {
@Autowired
private AllchargeMapper allchargeMapper;
    @Override
    public int addAllchargeOne(Allcharge allcharge) {
        return allchargeMapper.addAllchargeOne(allcharge);
    }

    @Override
    public String peopleSettlementById(People people) {
        return allchargeMapper.peopleSettlementById(people.getPid());
    }
}
